-- GENERATED SPELL FOR [Mirkfallon Keeper] --


function spell0_4056(pUnit, Event) --@Mirkfallon Fungus,n/a--
pUnit:FullCastSpellOnTarget(8138,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4056', 3000, 1)
end

function Sorts_4056(pUnit, Event)
local choix_sorts_4056 = math.random(0, 0)
if choix_sorts_4056 == 0 then
pUnit:RegisterEvent('spell0_4056', 1, 1)
end
end

function mob4056_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4056', math.random(1500, 3000), 1)
end

function mob4056_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4056_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4056_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4056, 1, 'mob4056_Action')
RegisterUnitEvent(4056, 2, 'mob4056_Leave')
RegisterUnitEvent(4056, 3, 'mob4056_Kill')
RegisterUnitEvent(4056, 4, 'mob4056_Die')
